﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GameTools.Data.DataType
{
    public class JsonNode : BindableBase
    {
        public string DisplayKey { get; set; }
        public string DisplayValue { get; set; } // null 表示它是一个嵌套对象

        public ObservableCollection<JsonNode> Children { get; set; } = new();

        public bool HasChildren => Children.Any();
    }
}
